package com.jason.rabbitmq.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Order implements Serializable {
    private static final long serialVersionUID = 4758406745161004565L;

    /**
     * 待支付
     */
    public static final Integer WAIT_PAY = 1;

    /**
     * 已支付
     */
    public static final Integer PAYED = 2;

    /**
     * 超时
     */
    public  static final Integer OVERTIME = 3;
    //订单号
    private String id;
    //收件人手机号
    private String phone;
    //收件人
    private String name;
    //收件地址
    private String address;
    //支付金额
    private BigDecimal payAmount;
    //订单状态
    private Integer status;
    //订单状态描述
    private String statusDesc;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", payAmount=" + payAmount +
                ", status=" + status +
                ", statusDesc='" + statusDesc + '\'' +
                '}';
    }
}
